package com.lucene.blog.db.mapper;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import com.lucene.blog.bean.BlogType;

/**
 * 博客类型Mapper接口
 * @author yachao
 *
 */
public interface BlogTypeMapper {

	// 获取博客类别信息
	public List<BlogType> getBlogTypeData() throws SQLException;
	
	// 根据id查找博客类型信息
	public BlogType findBlogTypeById(Integer Id) throws SQLException;
	
	// 分页查询博客
	public List<BlogType> getBlogTypeList(Map<String, Object> map) throws SQLException;
	
	// 获取总记录数
	public Long getTotal(Map<String, Object> map) throws SQLException;
	
	// 添加博客类别
	public Integer addBlogType(BlogType blogType) throws SQLException;
	
	// 更新博客类别
	public Integer updateBlogType(BlogType blogType) throws SQLException;
	
	// 删除博客类别
	public Integer deleteBlogTypeById(Integer id) throws SQLException;
}
